<? if (!defined("BASEPATH")) exit("No direct script access allowed");

header('Content-type: application/xml');

echo	"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
echo	"<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">\n";

foreach($getContinentList as $conId => $conData) {
	if(isset($conData["cou"])) {
		echo	"<url><loc>".($conData["url"])."</loc></url>\n";
		foreach($conData["cou"] as $couId => $couData) {
			echo	"<url><loc>".($couData["url"])."</loc></url>\n";
			if(isset($couData["city"])) {
				foreach($couData["city"] as $cityId => $cityData) {
					echo	"<url><loc>".($cityData["url"])."</loc></url>\n";
					if(isset($cityData["ins"])) {
						foreach($cityData["ins"] as $insId => $insData) {
							echo	"<url><loc>".($insData["url"])."</loc></url>\n";
							if(isset($insData["maj"])) {
								foreach($insData["maj"] as $majId => $majData) {
									echo	"<url><loc>".($majData["url"])."</loc></url>\n";
								}
							}
						}
					}
				}
			}
		}
	}
}
?>
</urlset>